Skip to main content

OSPF notes

Packet type:

  • Hello: discover and maintain neighborhood
  • DBD: LSA header information, like a dictionary of LSAs
  • LSR: request LSA
  • LSU: update LSA (may contain several LSA)
  • LS ACK: confirmation

LSA type:

Typeadvertizerscopecontent
1all routers running ospflocal areadirectly connected interfaces
2DRlocal areamask of a MA network
3ABRASsummary of LSA 1 & 2
4ABR in which area an ASBR existASwhere the ASBR is
5ASBRASexternal routes
6Group Membership LSA
7ASBR of NSSAin the NSSAexternal routes
8all routers in IPv6 (LSA 1 for ipv6)
9DR in IPv6 (LSA 2 for ipv6)
10MPLS TE
11MPLS TE

Route types:

  • O: LSA 1, 2
  • O IA, LSA 3
  • O E1, LSA 5 cost increase
  • O E2, LSA 5 cost does NOT increase
  • O N1, LSA 7 cost increase
  • O N2, LSA 7 cost does NOT increase

Network types:

  • BMA: hello timer 10s, DR will be selected
  • P2P: hello timer 10s, DR will be selected
  • P2MP
  • P2MP NB
  • NBMA: hello timer 30s
  • Loopback

Area types:

Typecharacteristics
stubno LSA 4, 5. default route from ABR (LSA 3), no external routes allowed
totally stubno LSA 3, 4, 5. default route from ABR (LSA 3), no external routes allowed
NSSAno LSA 4, 5. no default route from ABR, external routes allowed
totally NSSA (Cisco Only)no LSA 3, 4, 5. default route from ABR (LSA 3), external routes allowed

neighbor relationship:

Typecharacteristics
downonly in frame-relay
attemptonly in frame-relay
initsend hello packet
2-wayelect DR & BDR
ex-startsend DBD packets, select master/slave (whose sequence number will be used)
exchangeexchange LSA information (LSR, LSU)
loadingrespond ack, start SPF caculation
fullput best routes into routing table, neighbor connection finished

DR & BDR election:

  • priority, default is 1, 0 means the router doesn’t attempt election
  • Router ID, stuck in down if router ids are the same